#!/bin/sh
# $Id: gauge2,v 1.3 2003/10/09 22:15:56 tom Exp $
# The original vialog program assumed the first line after the first "XXX"
# was a percentage value (compare with "gauge" script).
: ${VIALOG=vialog}

(echo "10" ; sleep 2 ; 

echo "XXX"; 
echo "The new"
echo "\\n"
echo "message";
echo "XXX";
echo "20"
sleep 2; 

echo "75" ; sleep 1
echo "100") | \

$VIALOG --title "GAUGE" --gauge "Hi, this is a gauge widget" 10 40 0

if [ "$?" = 255 ] ; then
	echo ""
	echo "Box closed !"
fi
